import random
number = random.randint(0,100)
print("你所猜的数字在0和100之间")
guess = -1
index = 0
while guess != number:
    guess = eval(input("输入你的数字："))
    index += 1
    if guess>number:
        print("你猜得太大了")
    else:
        print("你猜得太小了")
print("回答正确,总共猜",index,"次")